package com.woniuxy.controller;

import com.woniuxy.service.RbacManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Iterator;
import java.util.List;
import java.util.Map;

/**
 * @Author: 马宇航
 * @Do: Controller
 * @DateTime: 22/05/16/0016 上午 11:49
 * @Component: 成都蜗牛学苑
 **/
@RestController
@RequestMapping("/rbacManager")
public class MyRbacController {
    @Autowired
    RbacManagerService rbacManagerService;
    @RequestMapping("/findAll")
    public List<Map<String,Object>> findAll(){
        List<Map<String, Object>> all = rbacManagerService.findAll();
        Iterator<Map<String, Object>> iterator = all.iterator();
        return rbacManagerService.findAll();
    }
}
